import axios from '../../axios'

/* 
 * 页面管理模块
 */

// 添加
export const addFunction = (data) => {
    return axios({
        url: '/kysj/user/function/addFunction',
        method: 'put',
        data
    })
}
// 编辑
export const updateFunction = (data) => {
    return axios({
        url: '/kysj/user/function/updateFunction',
        method: 'post',
        data
    })
}

// 删除
export const deleteFunction = (funId) => {
    return axios({
        url: '/kysj/user/function/deleteFunction?funId=' + funId,
        method: 'delete',
    })
}
// 统计功能数量
export const count = () => {
    return axios({
        url: '/kysj/user/function/count',
        method: 'get',
    })
}
// 分页查询
export const findByPage = (page,pageSize) => {
    return axios({
        url: '/kysj/user/function/findByPage/'+page+'/'+pageSize+'/',
        method: 'get',
    })
}
// 查询
export const findAll = () => {
    return axios({
        url: '/kysj/user/function/findAll',
        method: 'get',
    })
}

